/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #181c2b 0%, #232946 100%);
    min-height: 100vh;
    color: #f3f6fa;
}

/* 网站标题样式 */
.site-title {
    text-align: center;
    color: #1e90ff;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    width: 100%; /* 使标题宽度占满整个屏幕 */
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #1e90ff44;
    animation: fadeInDown 1s;
}

/* 登录框容器 */
.login-container {
    background: rgba(30,34,54,0.95);
    padding: 32px 32px 24px 32px;
    border-radius: 18px;
    box-shadow: 0 8px 32px #1e90ff22;
    width: 100%;
    max-width: 400px;
    position: relative;
    margin: 80px auto;
}

/* 标题样式 - 放在框的顶部 */
.login-title {
    text-align: center;
    color: #1e90ff;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #1e90ff44;
    animation: fadeInDown 1s;
}

/* 表单行样式 - 水平排列 */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-left: 50px;
}

/* 标签样式 */
.form-row label {
    width: 500px; /* 固定标签宽度 */
    font-weight: 500;
    color: #f3f6fa;
    margin-right: 15px;
    text-align: right;
}

/* 输入框样式 */
.form-row input[type="text"],
.form-row input[type="password"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #1e90ff;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #232946;
    color: #fff;
}

.form-row input[type="text"]:focus,
.form-row input[type="password"]:focus {
    border-color: #1e90ff;
    outline: none;
    box-shadow: 0 0 8px #1e90ff88;
}

/* 提交按钮样式 */
.submit-btn {
    background: #232946;
    color: #fff;
    border: 1px solid #1e90ff;
    border-radius: 8px;
    padding: 12px 120px; /* 按钮的内边距 */
    font-size: 16px;
    cursor: pointer;
    width: 40%; /* 按钮宽度 */
    transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s;
    font-weight: 500;
    margin-top: 20px;
    text-align: center; /* 字体居中 */
    margin-left: 100px; /* 按钮向右移动20px */
}

.submit-btn:hover {
    background: #1e90ff;
    color: #fff;
    box-shadow: 0 0 12px #1e90ff88, 0 0 2px #fff;
    transform: scale(1.08);
}

/* 错误消息样式 */
.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 12px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

